<%@tag pageEncoding="UTF-8" %>
<%@attribute name="id" required="true" %>
<%@attribute name="title" required="true" %>
<%@attribute name="placeholder" required="false" %>
<div class="layui-inline">
    <label class="layui-form-label">${title}</label>
    <div class="layui-input-inline">
        <input type="text" name="${id}_start" id="${id}_start" placeholder="${placeholder}" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid">-</div>
    <div class="layui-input-inline">
        <input type="text" name="${id}_end" id="${id}_end" placeholder="${placeholder}" autocomplete="off" class="layui-input">
    </div>
</div>
<script type="text/javascript">
    layui.use('laydate',function () {
        var laydate = layui.laydate;
        laydate.render({
            elem:'#${id}_start',
            type:'datetime'
        });
        laydate.render({
            elem:'#${id}_end',
            type:'datetime'
        });
    });
</script>